import request from '@/utils/request'

// 查询savepoint备份地址列表
export function listSavepointBackup(query) {
  return request({
    url: '/streaming/SavepointBackup/list',
    method: 'get',
    params: query
  })
}

// 查询savepoint备份地址详细
export function getSavepointBackup(id) {
  return request({
    url: '/streaming/SavepointBackup/' + id,
    method: 'get'
  })
}

// 新增savepoint备份地址
export function addSavepointBackup(data) {
  return request({
    url: '/streaming/SavepointBackup',
    method: 'post',
    data: data
  })
}

// 修改savepoint备份地址
export function updateSavepointBackup(data) {
  return request({
    url: '/streaming/SavepointBackup',
    method: 'put',
    data: data
  })
}

// 删除savepoint备份地址
export function delSavepointBackup(id) {
  return request({
    url: '/streaming/SavepointBackup/' + id,
    method: 'delete'
  })
}

// 导出savepoint备份地址
export function exportSavepointBackup(query) {
  return request({
    url: '/streaming/SavepointBackup/export',
    method: 'get',
    params: query
  })
}